home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / CIncludes / SetJmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-13  |  490 b   |  32 lines  |  [TEXT/MPS ]

  1. /*
  2.    SetJmp.h
  3.  
  4.    Copyright Apple Computer, Inc.    1986-1988
  5.    All rights reserved.
  6.  */
  7.  
  8. #ifndef __SETJMP__
  9. #define __SETJMP__
  10.  
  11.  
  12. typedef int *jmp_buf[12];        /*    D2-D7,PC,A2-A4,A6,SP  */
  13.  
  14. #ifdef __safe_link
  15. extern "C" {
  16. #endif
  17.  
  18. /*
  19.  *    setjmp() must be defined as a macro, according to the ANSI standard.
  20.  *    It is equivalent to int setjmp(jmp_buf env).
  21.  */
  22.  
  23. int __setjmp(jmp_buf env);
  24. #define setjmp(env) __setjmp(env)
  25. void longjmp(jmp_buf, int);
  26.  
  27. #ifdef __safe_link
  28. }
  29. #endif
  30.  
  31. #endif __SETJMP__
  32.